home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / query.z / query
Encoding:
Text File  |  2001-04-17  |  3.1 KB  |  65 lines

  1.  
  2.  
  3.  
  4.      QQQQUUUUEEEERRRRYYYY((((1111MMMM))))       KKKK----SSSSppppoooooooollll bbbbyyyy XXXXiiiinnnneeeetttt ((((11110000////11114444////99999999 11110000....1111))))        QQQQUUUUEEEERRRRYYYY((((1111MMMM))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           query - query AppleTalk Printer and put response into a
  10.           file.
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           ////uuuussssrrrr////eeeettttcccc////aaaapppppppplllleeeettttaaaallllkkkk////qqqquuuueeeerrrryyyy [[[[----aaaa]]]] [[[[----vvvv]]]] [[[[----PPPP _p_r_i_n_t_e_r ]]]] [[[[----TTTT _t_y_p_e ]]]]
  14.           [[[[----ZZZZ _z_o_n_e ]]]] [[[[ _n_u_m_b_e_r ]]]] _q_u_e_r_y_f_i_l_e _o_u_t_f_i_l_e
  15.  
  16.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.           The _q_u_e_r_y program sends a PostScript query (from _q_u_e_r_y_f_i_l_e)
  18.           to a printer, and places the result in the file _o_u_t_f_i_l_e.
  19.           The flags are defined as follows:
  20.  
  21.           ----aaaa   look in all zones (default)
  22.  
  23.           ----ssss   indicates the printer is serial (see below)
  24.  
  25.           ----vvvv   says be verbose
  26.  
  27.           ----PPPP   says look for printer with this name (default is
  28.                LaserWriter)
  29.  
  30.           ----TTTT   means look as if it is this type of printer (default is
  31.                LaserWriter)
  32.  
  33.           ----ZZZZ   tells it which zone to look in (default is all zones)
  34.  
  35.           The _q_u_e_r_y_f_i_l_e must exist, and contain a PostScript procedure
  36.           that will send the required data, terminated by an asterisk.
  37.           The _q_u_e_r_y_f_i_l_e must also be readable.  The _o_u_t_f_i_l_e must be
  38.           writable (if it exists already).
  39.  
  40.           This program can used by to to generate a fontlist by using
  41.           the included query file _f_o_n_t_q_u_e_r_y. For example:
  42.                query -P "LaserWriter Plus" /usr/etc/appletalk/fontquery fontlist
  43.           would generate a file fontlist in the current directory.
  44.  
  45.           In order to query a serial printer, the input and output
  46.           must be redirected.  For example:
  47.                (stty 9600 -echo -lcase tabs -nl tandem litout new ; \
  48.                query -s /usr/etc/appletalk/fontquery fontlist ) \
  49.                < /dev/tty01 > /dev/tty01
  50.           Would query a serial printer running at 9600 baud attached
  51.           to tty01 for its fontlist.   The stty options may have to be
  52.           adjusted for your particular printer.
  53.  
  54.      CCCCAAAAVVVVEEEEAAAATTTTSSSS
  55.           _q_u_e_r_y is no longer used for anything in K-Spool.  It is
  56.           included soley for backward compatibility and as a tool for
  57.           custom applications.
  58.  
  59.  
  60.  
  61.      Page 1                                         (printed 1/20/100)
  62.  
  63.  
  64.  
  65.